---
title: "Customize Form Fields"
space: "Frappe Framework"
url: "https://support.aakvatech.com/Frappe Framework/customize-form-fields"
updated: "2026-07-22"
---

<p>Here is a detailed explanation of the use of each field in the <strong>Customize Form</strong> Doctype:</p>
<hr>
<h3 id="-1-doc_type-"><strong>1. <code>doc_type</code></strong></h3>
<ul>
<li><strong>Description:</strong> Specifies the Doctype you want to customize.</li>
<li><strong>Use:</strong> Acts as the base for all customizations. It fetches the metadata of the selected Doctype and allows changes.</li>
</ul>
<hr>
<h3 id="-2-fields-table-"><strong>2. <code>fields</code> (Table)</strong></h3>
<ul>
<li><strong>Description:</strong> List of fields in the Doctype being customized.</li>
<li><strong>Use:</strong><ul>
<li>Add new custom fields.</li>
<li>Modify properties of existing fields (e.g., label, type, options).</li>
<li>Enable or disable field-level attributes like <code>in_list_view</code>, <code>mandatory</code>, or <code>read_only</code>.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-3-naming_rule-"><strong>3. <code>naming_rule</code></strong></h3>
<ul>
<li><strong>Description:</strong> Defines how document names are generated.</li>
<li><strong>Use:</strong><ul>
<li>Choose rules such as &quot;By fieldname&quot;, &quot;By Naming Series&quot;, or custom expressions for naming documents.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-4-autoname-"><strong>4. <code>autoname</code></strong></h3>
<ul>
<li><strong>Description:</strong> Custom expression for naming documents.</li>
<li><strong>Use:</strong><ul>
<li>Create dynamic names using formats like <code>EXAMPLE-{MM}-{#####}</code> for automatic naming.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-5-title_field-"><strong>5. <code>title_field</code></strong></h3>
<ul>
<li><strong>Description:</strong> Specifies the field to use as the document&#39;s title.</li>
<li><strong>Use:</strong><ul>
<li>Improves user navigation by displaying a human-readable title instead of the document name.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-6-search_fields-"><strong>6. <code>search_fields</code></strong></h3>
<ul>
<li><strong>Description:</strong> List of fields used in search dialogs for this Doctype.</li>
<li><strong>Use:</strong><ul>
<li>Enhance searchability by including relevant fields.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-7-image_field-"><strong>7. <code>image_field</code></strong></h3>
<ul>
<li><strong>Description:</strong> Field that stores an image attachment.</li>
<li><strong>Use:</strong><ul>
<li>Display a thumbnail image in the list view.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-8-default_print_format-"><strong>8. <code>default_print_format</code></strong></h3>
<ul>
<li><strong>Description:</strong> The default print format used for this Doctype.</li>
<li><strong>Use:</strong><ul>
<li>Preselect a specific print layout for documents.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-9-max_attachments-"><strong>9. <code>max_attachments</code></strong></h3>
<ul>
<li><strong>Description:</strong> Maximum number of attachments allowed for the document.</li>
<li><strong>Use:</strong><ul>
<li>Restrict or allow multiple file uploads.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-10-allow_copy-"><strong>10. <code>allow_copy</code></strong></h3>
<ul>
<li><strong>Description:</strong> Prevents users from copying a document.</li>
<li><strong>Use:</strong><ul>
<li>Ensure critical documents are not duplicated unintentionally.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-11-make_attachments_public-"><strong>11. <code>make_attachments_public</code></strong></h3>
<ul>
<li><strong>Description:</strong> Automatically makes attachments public.</li>
<li><strong>Use:</strong><ul>
<li>Simplifies sharing of files, such as invoices or reports, without requiring user intervention.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-12-track_changes-"><strong>12. <code>track_changes</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables tracking of field-level changes.</li>
<li><strong>Use:</strong><ul>
<li>Maintain an audit trail of modifications for accountability.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-13-track_views-"><strong>13. <code>track_views</code></strong></h3>
<ul>
<li><strong>Description:</strong> Tracks document views by users.</li>
<li><strong>Use:</strong><ul>
<li>Gain insights into document usage.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-14-allow_auto_repeat-"><strong>14. <code>allow_auto_repeat</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables auto-repeat functionality for recurring documents.</li>
<li><strong>Use:</strong><ul>
<li>Automate the creation of periodic invoices, subscriptions, or other documents.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-15-allow_import-"><strong>15. <code>allow_import</code></strong></h3>
<ul>
<li><strong>Description:</strong> Allows data import via the Data Import Tool.</li>
<li><strong>Use:</strong><ul>
<li>Facilitate bulk data entry for the selected Doctype.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-16-queue_in_background-"><strong>16. <code>queue_in_background</code></strong></h3>
<ul>
<li><strong>Description:</strong> Submits documents in the background.</li>
<li><strong>Use:</strong><ul>
<li>Improve performance by reducing immediate server load.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-17-is_calendar_and_gantt-"><strong>17. <code>is_calendar_and_gantt</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables Calendar and Gantt views.</li>
<li><strong>Use:</strong><ul>
<li>Visualize time-sensitive data (e.g., tasks, events) using interactive views.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-18-show_preview_popup-"><strong>18. <code>show_preview_popup</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables preview popups in the list view.</li>
<li><strong>Use:</strong><ul>
<li>Quickly view document details without opening the record.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-19-translated_doctype-"><strong>19. <code>translated_doctype</code></strong></h3>
<ul>
<li><strong>Description:</strong> Translates link field values to the user’s preferred language.</li>
<li><strong>Use:</strong><ul>
<li>Support multilingual environments for global teams.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-20-default_email_template-"><strong>20. <code>default_email_template</code></strong></h3>
<ul>
<li><strong>Description:</strong> Default template for emails related to this Doctype.</li>
<li><strong>Use:</strong><ul>
<li>Standardize communication by preselecting email formats.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-21-email_append_to-"><strong>21. <code>email_append_to</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables document creation via email.</li>
<li><strong>Use:</strong><ul>
<li>Automatically create documents when emails are sent to a designated address.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-22-subject_field-sender_field-sender_name_field-"><strong>22. <code>subject_field</code>, <code>sender_field</code>, <code>sender_name_field</code></strong></h3>
<ul>
<li><strong>Description:</strong> Define fields to store email-related metadata.</li>
<li><strong>Use:</strong><ul>
<li>Facilitate email-based workflows by mapping email details to fields.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-23-editable_grid-"><strong>23. <code>editable_grid</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables inline editing in child tables.</li>
<li><strong>Use:</strong><ul>
<li>Simplify data entry for child table fields.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-24-quick_entry-"><strong>24. <code>quick_entry</code></strong></h3>
<ul>
<li><strong>Description:</strong> Enables Quick Entry dialog for document creation.</li>
<li><strong>Use:</strong><ul>
<li>Speed up document creation with minimal fields.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-25-sort_field-"><strong>25. <code>sort_field</code></strong></h3>
<ul>
<li><strong>Description:</strong> Default field used for sorting in the list view.</li>
<li><strong>Use:</strong><ul>
<li>Customize how documents are ordered by default.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-26-sort_order-"><strong>26. <code>sort_order</code></strong></h3>
<ul>
<li><strong>Description:</strong> Sorting order (ASC/DESC).</li>
<li><strong>Use:</strong><ul>
<li>Choose whether documents are sorted in ascending or descending order.</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-27-links-table-"><strong>27. <code>links</code> (Table)</strong></h3>
<ul>
<li><strong>Description:</strong> Define related Doctypes linked to the current Doctype.</li>
<li><strong>Use:</strong><ul>
<li>Establish connections between documents (e.g., invoices linked to customers).</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-28-actions-table-"><strong>28. <code>actions</code> (Table)</strong></h3>
<ul>
<li><strong>Description:</strong> Define custom actions for the Doctype.</li>
<li><strong>Use:</strong><ul>
<li>Automate or streamline workflows with buttons like &quot;Approve&quot; or &quot;Send Email.&quot;</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-29-states-table-"><strong>29. <code>states</code> (Table)</strong></h3>
<ul>
<li><strong>Description:</strong> Define workflow states for the Doctype.</li>
<li><strong>Use:</strong><ul>
<li>Manage the document lifecycle (e.g., &quot;Draft,&quot; &quot;Approved,&quot; &quot;Rejected&quot;).</li>
</ul>
</li>
</ul>
<hr>
<h3 id="-30-form_builder-html-"><strong>30. <code>form_builder</code> (HTML)</strong></h3>
<ul>
<li><strong>Description:</strong> Embedded graphical interface for form customization.</li>
<li><strong>Use:</strong><ul>
<li>Drag and drop fields or rearrange sections visually.</li>
</ul>
</li>
</ul>
<hr>
<p>By combining these fields, the <strong>Customize Form</strong> Doctype allows extensive control over Doctype functionality, appearance, and behavior while maintaining simplicity for users.</p>
